<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>Laravel & Vue</title>
    <link rel="stylesheet" type="text/css" href="{{ asset('css/app.css') }}">
</head>
<body>
<div id="app"></div>
<div id="app1">
    <nav class="navbar navbar-inverse">
        <div class=" container">
            <div class="navbar-header">
                <a class="navbar-brand" href="/">LaravelVue</a>
            </div>
        </div>
    </nav>
    <div class="container main">
        <router-view />
    </div>
</div>
<script src="{{ mix('js/app.js') }}"></script>
<script>
    Echo.channel('news').listen('News', (e) => {
        console.log(e.message);
    });
</script>
</body>
</html>